package com.genesis.mall.mapper;

import com.genesis.mall.dto.CouponHistoryDetailDto;
import com.genesis.mall.entity.SmsCoupon;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 优惠券表 Mapper 接口
 * </p>
 *
 * @author author
 * @since 2022-08-01
 */
@Mapper
public interface SmsCouponMapper extends BaseMapper<SmsCoupon> {
    @Select("select * from sms_coupon where id = #{couponId}")
    List<SmsCoupon> findByCouponId(Long couponId);

}
